﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Public;

namespace DAL
{
    public class KhaiSinhDAL
    {
        public static void InsertKhaiSinh(KhaiSinhPublic _ks)
        {
            GiayKhaiSinh ks = new GiayKhaiSinh();
            ks.MaKS = _ks.MaKS;
            ks.SoKhaiSinh = _ks.SoKhaiSinh;
            ks.NguoiDangKi = _ks.NguoiDangki;
            ks.QuanHeKS = _ks.QuanHeKS;
            ks.NguoiCap = _ks.NguoiCap;
            ks.ChucVu = _ks.ChucVu;
            ks.NgayCap = _ks.NgayCap;
            ks.NoiCap = _ks.NoiCap;
            ks.NoiSinh = _ks.NoiSinh;
            ks.HoTenCha = _ks.HoTenCha;
            ks.QuocTichCha = _ks.QuocTichCha;
            ks.DanTocCha = _ks.DanTocCha;
            ks.HoTenMe = _ks.HoTenMe;
            ks.QuocTichMe = _ks.QuocTichMe;
            ks.DanTocMe = _ks.DanTocMe;
            Common.db.AddToGiayKhaiSinhs(ks);
            Common.db.SaveChanges();
        }
    }
}
